package properties;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * Erstellt am 10.07.2013
 * @author Luca Christen
 */
public class MyTradeProps {
	
	private static ResourceBundle rb;
	private static final String PATH = "properties.config";
	
	public static String getPropertyText(String property) {
		if (rb == null) {
			rb = ResourceBundle.getBundle(PATH);
		}
		try {
			return rb.getString(property);
		} catch (MissingResourceException e) {
			return null;
		}
	}
}
